/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkgjeudestrategie;

import java.awt.Color;
import java.awt.Graphics;
import java.io.Serializable;

/**
 *
 * @author Admin
 */
public class Ville extends Zoomable implements Serializable{

    
    private Territoire territoire;
    public Ville(Territoire territoire) {
        this.territoire = territoire;
        setSize(400, 400);
    }

    public void paintComponent(Graphics g) {

        
        g.setColor(Color.black);
        g.fillOval((int) (getWidth() * 0.1), (int) (getWidth() * 0.1), getWidth() - (int) (getWidth() * 0.2), getHeight() - (int) (getWidth() * 0.2));
        if (territoire.isClicked){
          g.setColor(Color.cyan);  
        } else {
            g.setColor(new Color(0,0,100));
        }
        
        g.fillOval((int) (getWidth() * 0.125), (int) (getWidth() * 0.125), getWidth() - (int) (getWidth() * 0.25), getHeight() - (int) (getWidth() * 0.25));
    }
}
